package com.zimin.cloud.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zimin.cloud.mine.pojo.system.business.AccountBO;
import com.zimin.cloud.mine.pojo.system.view.AccountVO;
import com.zimin.cloud.system.pojo.entity.Account;
import com.zimin.mapper.pojo.IBaseService;

import java.io.Serializable;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author zimin
 * @since 2021-12-30 11:04
 */
public interface IAccountService extends IBaseService<Account> {

    AccountVO getAccountById(Serializable accountId);

    Page<AccountVO> page(Page<Account> accountPage, AccountBO accountBO);
    /**
     * <p>根据用户或者密码查询用户是否存在</p>
     *
     * @param accountBO 查询对象
     * @return boolean
     * @since 2022-03-17 16:45:33
     */
    AccountVO isExistByUserNameAndPwd(AccountBO accountBO);
}
